package com.ithema.b2b.userprovider.dao;

import model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao {
    /**
     * register
     * @param upassword
     * @param uname
     * @param usex
     * @return
     */
    int register(@Param(value = "upassword")String upassword,
                 @Param(value = "uname")String uname,
                 @Param(value = "usex") String usex);

    User login(@Param(value = "uname") String uname);
}
